﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataStates.aspx.cs" Inherits="Catering.Catering_Page.Kufang.DataStates" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
    .table_kq
        {
            background-color: #C6DCF1; margin-bottom:20px;
        }
        .table_kq th
        {
            height: 30px;
            line-height: 30px;
            background-image: url(../../Images/table_th_bg.gif);
            background-position: 0px -1px;
            background-repeat: repeat-x;
        }
        .table_kq tr
        {
            background-color: #ffffff;
        }
        .table_kq td
        {
            text-align: center; height:26px; line-height:26px; border:1px solid #C2DEF6;
        }
    </style>
</head>
<script type="text/javascript">
    $(document).ready(
        function () {
            var g = "";
            var num = 1;
            var s = "";
            var obj = null;
            var tab = $("table.table_kq tr");
            tab.each(
                function () {
                    var f = $(this).find("td:nth(1)");
                    if (f.html() != null) {
                        if (obj == null) {
                            obj = f;
                            num = 1;
                            s = f.html();
                        }
                        else {
                            if (s == f.html()) {
                                num++;
                                $(obj).attr("rowspan", num);
                                f.remove();
                            }
                            else {
                                obj = f;
                                num = 1;
                                s = f.html();
                            }
                        }

                    }
                }
            );
        }
    );
</script>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <div id="div_se_1" class="nav_2" style="display: block">
            <div class="nav_2_1"><img src="../../Images/nav2_bg1.gif" /></div>
            <ul>
                <li style="background: none; width:60px; "><a href="CostDataStatistics.aspx"><span id="span_peic_1" class="feise_border">成本统计</span></a></li>
                <li style="background: none; width:60px; "><a href="XiaohaoTypeCrossChar.aspx"><span id="span_peic_2" class="feise_border">消耗统计</span></a></li>
                <li style="background: none; width:130px; "><a href="DataStates.aspx"><span id="span_peic_3" class="lvse_border">出入库状态统计</span></a></li>
            </ul>
            <div class="nav_2_3"><img src="../../Images/nav2_bg2.gif" /></div>
        </div>
       <div class="Center_Content" id="div2_2" style="display: block">
        <div class="div_0207 left_width500" style="height:34px; width:998px;">
            <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0" class="ckgl_table" style="height:34px">
                <thead>
                    <tr>
                        <td width="75" align="right">作业区：</td>
                        <td width="110" align="center">
                            <asp:DropDownList ID="DDL_Area" CssClass="select_input_bg" Width="100px" 
                                runat="server" onselectedindexchanged="DDL_Area_SelectedIndexChanged" AutoPostBack="True">
                            </asp:DropDownList>
                        </td>
                        <td width="45" align="right">班组：</td>
                        <td width="110" align="center">
                            <asp:DropDownList ID="DDL_Class" CssClass="select_input_bg" Width="110" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td width="45" align="right">年月：</td>
                        <td width="90" align="center">
                            <asp:TextBox ID="Txt_Date" CssClass="input_bg" Width="80" runat="server"></asp:TextBox>
                        </td>
                        <td style="width:80px" align="right">出入库选择：</td>
                        <td style="width:70px;">
                            <asp:DropDownList ID="DDL_Type" Width="60" CssClass="select_input_bg" runat="server">
                                <asp:ListItem Selected Value="0">入库</asp:ListItem>
                                <asp:ListItem Value="1">出库</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">开始统计</asp:LinkButton>
                        </td>
                        <td width="10"></td>
                    </tr>
                </thead>
            </table>
        </div>
       </div>
       <div class="Center_Content" id="div1"  style="height:360px; overflow:auto;">
        <table width="1140" cellpadding="0" cellspacing="1" class="table_kq">
            <thead>
                <tr>
                    <th width="50">
                        序号
                    </th>
                    <th width="75">
                        作业区
                    </th>
                    <th width="160">
                        班组
                    </th>
                    <th width="26">
                        1
                    </th>
                    <th width="26">
                        2
                    </th>
                    <th width="26">
                        3
                    </th>
                    <th width="26">
                        4
                    </th>
                    <th width="26">
                        5
                    </th>
                    <th width="26">
                        6
                    </th>
                    <th width="26">
                        7
                    </th>
                    <th width="26">
                        8
                    </th>
                    <th width="26">
                        9
                    </th>
                    <th width="26">
                        10
                    </th>
                    <th width="26">
                        11
                    </th>
                    <th width="26">
                        12
                    </th>
                    <th width="26">
                        13
                    </th>
                    <th width="26">
                        14
                    </th>
                    <th width="26">
                        15
                    </th>
                    <th width="26">
                        16
                    </th>
                    <th width="26">
                        17
                    </th>
                    <th width="26">
                        18
                    </th>
                    <th width="26">
                        19
                    </th>
                    <th width="26">
                        20
                    </th>
                    <th width="26">
                        21
                    </th>
                    <th width="26">
                        22
                    </th>
                    <th width="26">
                        23
                    </th>
                    <th width="26">
                        24
                    </th>
                    <th width="26">
                        25
                    </th>
                    <th width="26">
                        26
                    </th>
                    <th width="26">
                        27
                    </th>
                    <th width="26">
                        28
                    </th>
                    <th width="26">
                        29
                    </th>
                    <th width="26">
                        30
                    </th>
                    <th width="26">
                        31
                    </th>
                </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                        <tr>
                            <td>
                                <%# Container.ItemIndex + 1%>
                            </td>
                            <td rowspan="1">
                                <%#Eval("AreaName") %>
                            </td>
                            <td>
                                <%#Eval("CName") %>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("1r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("2r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("3r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("4r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("5r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("6r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("7r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("8r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("9r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("10r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("11r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("12r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("13r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("14r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("15r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("16r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("17r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("18r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("19r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("20r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("21r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("22r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("23r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td> 
                                <%#Convert.ToDecimal(Eval("24r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("25r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("26r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("27r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("28r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("29r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("30r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                            <td>
                                <%#Convert.ToDecimal(Eval("31r").ToString())<=0 ? "&nbsp;" : "<img src='../../Images/yes.png' />"%>
                            </td>
                        </tr>                    
                </ItemTemplate>
            </asp:Repeater>
            </tbody>
        </table>
    </div>
    </form>
    <div class="footer">
        <strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span></div>
    </form>
</body>
</html>
